package dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import po.Goods;

@Repository("goodsDao")
@Mapper

public interface GoodsDao {
	//查找
    public List<Goods> daoSelectAllGoods();
    public Goods daoSelectAGoods(Integer id); 
    public List<Goods> daoSelectGoodsByPage(Map<String, Object> map);
    //添加
    public void daoAddGoods(Goods goods);
    //删除
    public int daoDeleteAGoods(Integer id);
    public int daoDeleteGoods(List<Integer> ids);
    //修改
    public int daoUpdateAGoods(Goods goods);
    
    //查询购物车关联表
  	public List<Map<String, Object>> daoSelectCartGoods(Integer id);
  	
  	//查询关注关联表
  	public List<Map<String, Object>> daoSelectFocusGoods(Integer id);
  	
  	//查询订单关联表
  	public List<Map<String, Object>> daoSelectOrderGoods(Integer id);
}

